


import 'package:aone_common/common.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class AuthViewController extends GetxController with GetSingleTickerProviderStateMixin {

  late TabController tabController;

  @override
  void onInit() {
    tabController = TabController(length: 2, vsync: this);
    if (Get.currentRoute == Routes.login) {
      tabController.index = 1;
    }
    super.onInit();
  }

  @override
  void onClose() {
    tabController.dispose();
    super.onClose();
  }

}